/*
 * Copyright(c)  2022 厦门外里科技有限公司 All rights reserved.
 *
 * https://www.wailikeji.com
 *
 * 版权所有，侵权必究！
 */

import Vue from 'vue'
import App from './App'
import store from '@/common/store'
import tools from '@/common/utils/tools'
import api from '@/common/request/index'
import moment from 'moment'
Vue.prototype.$moment = moment
Vue.prototype.$store = store;
Vue.prototype.$tools = tools;
Vue.prototype.$api = api;

import router from '@/common/router'
import {RouterMount} from  'uni-simple-router'
Vue.use(router)

Vue.config.productionTip = false

App.mpType = 'app'

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

const app = new Vue({
	store,
	...App
})

//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
RouterMount(app,router,'#app')
// #endif

// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
